<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Disable the ability to load external entities</title>
 </head>
 <body class="docs"><div id="layout">
  <div id="layout-content"><div id="function.libxml-disable-entity-loader" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">libxml_disable_entity_loader</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.2.11, PHP 7)</p><p class="refpurpose"><span class="refname">libxml_disable_entity_loader</span> &mdash; <span class="dc-title">Disable the ability to load external entities</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.libxml-disable-entity-loader-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>libxml_disable_entity_loader</strong></span>
    ([ <span class="methodparam"><span class="type">bool</span> <code class="parameter">$disable</code><span class="initializer"> = <strong><code>TRUE</code></strong></span></span>
  ] ) : <span class="type">bool</span></div>

  <p class="para rdfs-comment">
   Disable/enable the ability to load external entities.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.libxml-disable-entity-loader-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<code class="parameter">disable</code></dt>

     <dd>

      <p class="para">
       Disable (<strong><code>TRUE</code></strong>) or enable (<strong><code>FALSE</code></strong>) libxml extensions (such as
       <a href="book.dom.html" class="xref">DOM</a>, <a href="book.xmlwriter.html" class="xref">XMLWriter</a>
       and <a href="book.xmlreader.html" class="xref">XMLReader</a>) to load external entities.
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.libxml-disable-entity-loader-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns the previous value.
  </p>
 </div>






 <div class="refsect1 seealso" id="refsect1-function.libxml-disable-entity-loader-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="libxml_use_internal_errors.html" class="function" rel="rdfs-seeAlso">libxml_use_internal_errors()</a> - Disable libxml errors and allow user to fetch error information as needed</span></li>
    <li class="member"><a href="libxml.constants.html" class="link">The <strong><code>LIBXML_NONET</code></strong> constant</a></li>
   </ul>
  </p>
 </div>


</div></div></div></body></html>